{extend name="public/base" /}

{block name="title"}<title>后台首页</title>{/block}

{block name="pjax_container"}
<section class="content">
    <div class="row">
        <div class="col-lg-3 col-sm-6 col-xs-12">
            <div class="small-box bg-aqua">
                <div class="inner"><h3>{$userNear}</h3><p>{$Think.lang.new_user_num}</p></div>
                <div class="icon"><i class="fa fa-eye"></i></div>
                <a href="{:url('User/index')}" class="small-box-footer">{$Think.lang.more} <i class="fa fa-arrow-circle-right"></i></a>
            </div>
        </div>

    <div class="col-lg-4 col-sm-6 col-xs-12">

        {volist name="honor" id="vo"}
          <div class="box box-widget widget-user">
            <div class="widget-user-header bg-aqua-active">
              <h3 class="widget-user-username">本月优秀员工</h3>
              <h5 class="widget-user-desc">{$vo.am_name} &nbsp;{$vo.user_name}</h5>
            </div>
            <div class="widget-user-image">
              <img class="img-circle" src="{$vo.avatar}" alt="User Avatar">
            </div>
            <div class="box-footer">
                {volist name="vo['labelArr']" id="ff"}
				<span class="label label-danger">{$ff.title}</span>
                {/volist}
            </div>
            <div class="box-body">
              <div class="row">
                  <div class="description-block">
                    <h5 class="widget-user-desc">&nbsp;{$vo.info}</h5>
                  </div>
              </div>
            </div>
          </div>
        {/volist}


    </div>


    <div class="row">
    	<div class="col-lg-3 col-sm-6 col-xs-12">
          <div class="box box-warning">
            <div class="box-header with-border">
              <h3 class="box-title">人事通知</h3>
              <div class="box-tools pull-right">
                <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i>
                </button>
              </div>
            </div>
            <div class="box-body">
                <?php echo htmlspecialchars_decode($personnelMessage['info'])?>
          </div>
          </div>
        </div>
    </div>

</section>
<script>
$(function () {
    var loginLogLineJson = {$loginLogLineJson};
    var loginline = document.getElementById('login-line').getContext('2d');
    new Chart(loginline, {
        type: 'line',
        data: loginLogLineJson,
        options: {
            responsive: true,
            maintainAspectRatio: false
        }
    });
    
    var groupPieJson = {$groupPieJson};
    var userpie = document.getElementById('user-pie').getContext('2d');
    new Chart(userpie, {
        type: 'pie',
        data: groupPieJson,
        options: {
            responsive: true,
            maintainAspectRatio: false
        }
    });
    
    {if condition=" $rest_login == 1 "}
    restlogin('{$rest_login_info}');   //登录超时
    {/if}
});
</script>
{/block}